package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import Singleton.Application;
import Singleton.Local;

public final class header_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
 String title = Singleton.Application.getTitle(); 
      out.write('\r');
      out.write('\n');

	Singleton.Application.init();
	String libPath = request.getContextPath()+"/lib";

      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n");
      out.write("<title>Calendrier");
 if (title != null && title != "") { out.println(" - "+title); } 
      out.write("</title>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print( libPath );
      out.write("/css/menuStyles.css\" />\r\n");
      out.write("<link rel=\"stylesheet\" href=\"");
      out.print( libPath );
      out.write("/css/cal_blue_all.css\" type=\"text/css\" media=\"all\">\r\n");
      out.write("<link rel=\"shortcut icon\" href=\"");
      out.print( libPath );
      out.write("/images/favicon.ico\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print( libPath );
      out.write("/js/myJavascript.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<div id=\"header\" class=\"globalbuttonbar\">\r\n");
      out.write("    <span class=\"first\">\r\n");
      out.write("        <button type=\"button\" onclick=\"\">Ajouter un événement</button><span> - </span>\r\n");
      out.write("    </span>\r\n");
      out.write("</div>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
